Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: move GitLab secrets to secrets manager (part 1) #223

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

michalc
Copy link
Member

@michalc michalc commented Jan 23, 2025

Instead of having to have files local in the filesystem (which is tricky to store securely), that are then copied to S3, which GitLab pulls from on launch, this makes it so GitLab secrets are stored in Secrets Manager, which GitLab pulls from on launch.

This is a part 1 of (probably) 2 parts - this does not remove existing object, permissions or any associated config, to allow environments to keep on accessing the secrets as they were, so we don't have to migrate them all at once. Later parts will likely remove permissions and config.

This is part of our move away from having to have any secrets locally on the filesystem.

@michalc michalc requested a review from a team as a code owner January 23, 2025 17:04
@michalc michalc force-pushed the feat/move-gitlab-secrets-to-secrets-manager branch from bfa7023 to d49047d Compare January 23, 2025 17:12
@michalc michalc changed the title feat: move GitLab secrets to secrets manager feat: move GitLab secrets to secrets manager (Part 1) Jan 23, 2025
@michalc michalc changed the title feat: move GitLab secrets to secrets manager (Part 1) feat: move GitLab secrets to secrets manager (part 1) Jan 23, 2025
@michalc michalc force-pushed the feat/move-gitlab-secrets-to-secrets-manager branch 3 times, most recently from 4a43e7e to a3b9dd0 Compare January 27, 2025 13:43
Instead of having to have files local in the filesystem (which is tricky to
store securely), that are then copied to S3, which GitLab pulls from on launch,
this makes it so GitLab secrets are stored in Secrets Manager, which GitLab
pulls from on launch.

This is a part 1 of (probably) 2 parts - this does not remove existing object,
permissions or any associated config, to allow environments to keep on
accessing the secrets as they were, so we don't have to migrate them all at
once. Later parts will likely remove permissions and config.

This is part of our move away from having to have any secrets locally on the
filesystem.
@michalc michalc force-pushed the feat/move-gitlab-secrets-to-secrets-manager branch from a3b9dd0 to 6839f81 Compare January 27, 2025 19:53
@michalc michalc merged commit ff8979a into main Jan 27, 2025
4 checks passed
@michalc michalc deleted the feat/move-gitlab-secrets-to-secrets-manager branch January 27, 2025 19:57
michalc added a commit to uktrade/data-workspace-gitlab that referenced this pull request Jan 27, 2025
This is the corresponding PR to
uktrade/data-workspace#223 - pulling GitLab secrets
from Secrets Manager rather than S3.
michalc added a commit that referenced this pull request Jan 27, 2025
This follows up from #223 by
making it possible to apply the terraform with GitLab enabled, but while not
have GitLab secrets on the local filesystem.
michalc added a commit that referenced this pull request Jan 31, 2025
This follows up from #223 by
making it possible to apply the terraform with GitLab enabled, but while not
have GitLab secrets on the local filesystem.
michalc added a commit that referenced this pull request Jan 31, 2025
This follows up from #223 by
making it possible to apply the terraform with GitLab enabled, but while not
have GitLab secrets on the local filesystem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant